package trainfengxing.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import trainfengxing.pojo.order;
import trainfengxing.service.orderService;

import java.util.List;

@Service
public class orderServiceImpl implements orderService {
    @Autowired
    private trainfengxing.mapper.orderMapper orderMapper;


    @Override
    public void order(order order) {

        orderMapper.order(order);
    }

    @Override
    public List<order> selectorder(Integer userID) {
        return orderMapper.selectorder(userID);
    }

    @Override
    public void deletetrainorder(order order) {
        orderMapper.deletetrainorder(order);
    }

    @Override
    public void changeorder(order order) {
        orderMapper.changeorder(order);
    }


}
